From 0d5b1573a26a4301922b6bab195adfe281f53f44 Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Sun, 18 Mar 2001 16:55:28 +0000 Subject: [PATCH] (DEBUG_LINK): New macro. (LINK_FLAGS): Use it. --- nt/gmake.defs | 4 +++- nt/nmake.defs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/nt/gmake.defs b/nt/gmake.defs index 48806a72263..32b4dc7e0f8 100644 --- a/nt/gmake.defs +++ b/nt/gmake.defs @@ -226,8 +226,10 @@ endif ifdef NODEBUG DEBUG_FLAG = +DEBUG_LINK = else DEBUG_FLAG = -g +DEBUG_LINK = -g endif ifdef NOCYGWIN @@ -248,7 +250,7 @@ else ERROR Unknown architecture type "$(ARCH)". endif -LINK_FLAGS = $(ARCH_LDFLAGS) $(NOCYGWIN) $(USER_LDFLAGS) +LINK_FLAGS = $(ARCH_LDFLAGS) $(DEBUG_LINK) $(NOCYGWIN) $(USER_LDFLAGS) .DEFAULT: diff --git a/nt/nmake.defs b/nt/nmake.defs index fb6dfdae282..1f6db21eaa0 100644 --- a/nt/nmake.defs +++ b/nt/nmake.defs @@ -161,8 +161,10 @@ DEL_TREE = rm -r !ifdef NODEBUG DEBUG_FLAG = +DEBUG_LINK = !else DEBUG_FLAG = -Zi +DEBUG_LINK = -debug:full -debugtype:both !endif !if "$(ARCH)" == "i386" @@ -200,7 +202,7 @@ ARCH_LDFLAGS = $(SYS_LDFLAGS) !endif !endif -LINK_FLAGS = $(ARCH_LDFLAGS) $(USER_LDFLAGS) +LINK_FLAGS = $(ARCH_LDFLAGS) $(DEBUG_LINK) $(USER_LDFLAGS) # From MSVC 5.0 onwards, it seem base relocation information is not included, # at least in release builds. We need to ensure the reloc info is included -- 2.30.2